import request from '@/request/request.js'
export default {
  // 密码登录
  /* passWordLogin(params) {
		return request('/login', 'POST', params)
	}, */
  // 退出登录
  logout(data) {
    return request('/h5/app/student/user/logout', 'POST', data)
  },
  // 获取配置信息
  getConfig(data) {
    return request('/h5/app/student/user/configInfo', 'GET', data)
  },
  // 获取sessionkey
  getSessionKey(code) {
    return request('/h5/app/get_sessionkey', 'POST', code)
  },
  // 获取解析出的手机号
  getPhone(data) {
    return request('/h5/app/get_phone', 'POST', data)
  },
  //给后台返回用户登录授权后的信息
  setUserInfo(data) {
    return request('/h5/app/login', 'POST', data)
  },
  //判断用户是否登录
  isLogin(data) {
    return request('/h5/app/is_login', 'POST', data)
  },
  //实名认证
  verify(data) {
    return request('/h5/app/user_verify', 'POST', data)
  },
  // 获取藏品信息
  getCollections(data) {
    return request('/h5/app/getCollection', 'POST', data)
  },
  /* 首页 */
  //首页列表
  getIndex(data) {
    return request('/h5/app/activity_list', 'POST', data)
  },
  //精彩推荐
  getRecommend(data) {
    return request('/h5/app/activity_recommend', 'POST', data)
  },
  //发行预告
  getAdvanceNotice(data) {
    return request('/h5/app/activity_trailer', 'POST', data)
  },
  /*  */
  // 藏品详情
  getCollectionsDetail(data) {
    return request('/h5/app/collection_detail', 'POST', data)
  },
  //活动详情
  getActivityDetail(data) {
    return request('/h5/app/activity_detail', 'POST', data)
  },
  // 预约活动
  orderActivity(data) {
    return request('/h5/app/activity_appointment', 'POST', data)
  },
  // 领取藏品
  receiveCollection(data) {
    return request('/h5/app/receive_collection', 'POST', data)
  },
  // 我的藏品
  myCollection(data) {
    return request('/h5/app/my_collection', 'POST', data)
  },
  //我的关注
  myFollow(data) {
    return request('/h5/app/follow_list', 'POST', data)
  },
  //我的藏品详情
  myCollectionDetail(data) {
    return request('/h5/app/collection_detail_my', 'POST', data)
  },
  //消息列表
  getNotice(data) {
    return request('/h5/app/news_list', 'POST', data)
  },
  //消息详情
  getNoticeDetail(data) {
    return request('/h5/app/news_detail', 'POST', data)
  },
  //修改昵称
  editUsername(data) {
    return request('/h5/app/change_userinfo', 'POST', data)
  },
  /* H5登录 */
  // 登录
  submitLogin(data) {
    return request('/h5/app/login', 'POST', data)
  },
  // 手机验证码
  getVerifyCode(data) {
    return request('/h5/app/getcode', 'POST', data)
  },
  // 关注
  advanceCollection(data) {
    return request('/h5/app/focus_activity', 'POST', data)
  },
  cancelFocus(data) {
    return request('/h5/app/cancel_focus', 'POST', data)
  },
  // 支付
  wechatPay(data) {
    return request('/h5/app/advance_Order', 'POST', data)
  },
  // 取消支付
  cancelPay(data) {
    return request('/h5/app/cancel_order', 'POST', data)
  },
  shareData(data) {
    return request('/h5/app/share', 'POST', data)
  },
  downPic(data) {
    return request('/h5/app/downPic', 'POST', data)
  },
  sharePoster(data) {
    return request('/h5/app/poster_share', 'POST', data)
  },
  mySharePoster(data) {
    return request('/h5/app/my_poster_share', 'POST', data)
  },
}
